package nl.grol.yakshop.domain.model;

import com.google.common.base.Objects;
import com.google.common.base.Preconditions;

/**
 * @author mgrol
 * 
 */
public class Stock {
	private Integer day;
	private Double milk;
	private Integer skins;

	public Stock(Integer forDay, Double milk, Integer skins) {

		Preconditions.checkArgument(forDay != null);
		Preconditions.checkArgument(forDay >= 0);

		this.day = forDay;
		this.milk = milk;
		this.skins = skins;
	}

	public Integer getDay() {
		return day;
	}

	public Double getMilk() {
		return milk;
	}

	public Integer getSkins() {
		return skins;
	}

	public String toString() {

		return Objects.toStringHelper(this)
			.add("day", this.day)
			.add("milk", this.milk)
			.add("skins", this.skins)
			.toString();
	}
}
